package com.atom.process.cnmuseum.cj.dao.process;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.atom.common.dao.AvensCommonDao;
import com.atom.common.remote.user.UserUtil;
import com.atom.process.cnmuseum.cj.entity.process.CjWhsxProcessDO;

@Repository
public class CjWhsxProcessDao extends AvensCommonDao<CjWhsxProcessDO> {
    public List<CjWhsxProcessDO> findByProcessInstanceId(String processId) {
        List<CjWhsxProcessDO> list = super.findByProperty("processId", processId);
        return list;
    }


    public void createPDO(UserUtil user, String processInstanceId, String title) {
        CjWhsxProcessDO pdo = new CjWhsxProcessDO();
        pdo.setProcessId(processInstanceId);
        super.save(pdo);
    }

}
